<?php if(in_array($order_info['order_status'],array(4,5,6))):?>
     <div id="price_id">
        <div class="h_a">
            入住房间
        </div>
        <div class="table_full">
            <table class="table_list"  id="js-input-check-box" width="100%">
                <col width="20%"/>
                <col width="20%"/>
                <col width="20%"/>
                <col width="20%"/>
                <col width="20%"/>
                <col width="20%"/>
                <col/>
                <tbody>
                <tr>
                    <td>选择</td>
                    <td>房间号</td>
                    <td>已经入住日期</td>
                    <td>可入住人数</td>
                    <td>房间价格</td>
                    <td>备注</td>
                </tr>

                <?php if($room_list):?>
                    <?php foreach ($room_list as $key=>$item):?>
                        <tr class="js-input-room-check">
                            <td>
                                <label><input type="checkbox"  name="room_id[]" id="check_room_<?php echo $key;?>" value="<?php echo $item['id'];?>"
                                    <?php if (in_array($item['id'],$lock_room)):?>
                                        <?php if (in_array($item['id'],$order_room)):?>
                                            checked
                                        <?php else: ?>
                                            checked  disabled data-status="0"
                                        <?php endif;?>
                                        <?php else:?>
                                    <?php endif;?>

                                    <?php if($item['is_suite']):?>
                                        data-price="<?php echo intval($item['price']);?>"
                                    <?php endif;?>
                                >
                                <?php if (in_array($item['id'],$lock_room)):?>
                                    <?php if (in_array($item['id'],$order_room)):?>
                                        当前订单入住
                                    <?php else:?>
                                        已入住
                                    <?php endif;?>

                                    <?php else:?>

                                    可选择
                                <?php endif;?>
                                </label>

                            </td>
                            <lable for="check_room_<?php echo $key;?>">
                            <td><?php echo $item['name'];?></td>
                            <td>
                                <?php if(!empty($lock_key_date[$item['id']])):?>
                                    <?php echo implode(',', $lock_key_date[$item['id']]);?>
                                <?php else: ?>
                                    未入住
                                <?php endif;?>
                            </td>
                            <td><?php echo $item['number'];?></td>
                            <td><?php echo !$item['is_suite'] ? '--' : '￥'.intval($item['price']).'(套房)';?></td>
                            <td><?php echo $item['note'];?></td>
                            </lable>
                        </tr>
                        <?php if(!empty($conflict_orders) && !empty($conflict_orders[$item['id']])):?>
                            <?php foreach ($conflict_orders[$item['id']] as $index=>$value):?>
                                    <tr>
                                        <td class="red"><i class="fa fa-exclamation-circle"></i> 该房间已有其他客户入住 !</td>
                                        <td class="red">
                                        冲突订单ID:<?php echo $index;?>
                                        <a class="red" href="<?php echo site_url('order/adminhotel/edit?id='.$value[0]['order_id']);?>">点击查看>>></a>
                                        </td>
                                        <td class="red">
                                             冲突日期：
                                    <?php if($value):?>
                                        <?php foreach ($value as $k=>$v):?>
                                            <span class="red"><?php echo fdate($v['date']);?></span>
                                        <?php endforeach;?>
                                    <?php endif;?>
                                        </td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                            <?php endforeach;?>
                        <?php endif;?>
                    <?php endforeach;?>
                <?php endif;?>
                </tbody>
            </table>

        </div>
    </div>
<?php endif;?>

